package com.example.news.pojo.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@Data
@TableName("user")
public class User implements Serializable {
    @TableId(type= IdType.AUTO)
    private Integer id;
    private String nickname;
    private String username;
    private String email;
    private String password;
    private String avatar;
    @TableField(fill = FieldFill.INSERT) //创建时自动填充
    private Date createTime;
    private Integer status;
    private String sign;
    private Integer sex;
    @TableLogic
    private Integer deleted;
}

